home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.xsave / 000074_fdc@panix.com_Thu Feb 15 12:23:46 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: reader2.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: SSL Solaris 9 compile errors
  5. Date: Thu, 15 Feb 2007 17:22:53 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 52
  8. Message-ID: <slrnet95nd.1b6.fdc@panix2.panix.com>
  9. References: <1171461754.452734.293090@a75g2000cwd.googlegroups.com> <slrnet6bnr.t17.fdc@panix1.panix.com> <1171474573.115000.277200@v45g2000cwv.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix2.panix.com
  12. X-Trace: reader2.panix.com 1171560173 17884 166.84.1.2 (15 Feb 2007 17:22:53 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Thu, 15 Feb 2007 17:22:53 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15645
  17.  
  18. On 2007-02-14, Gary Quiring <gquiring@gmail.com> wrote:
  19. : On Feb 14, 10:47 am, Frank da Cruz <f...@panix.com> wrote:
  20. :> On 2007-02-14, Gary Quiring <gquir...@gmail.com> wrote:
  21. :> : I am trying to compile kermit 8.0.211 with Solaris 9 (Sparc).  My
  22. :> : openssl ver is 0.9.8d
  23. :> :
  24. :> : Makeline: make solaris9g+openssl+shadow+pam+zlib
  25. :> :...
  26. :> : /usr/local/ssl/include/openssl/rsa.h:336: error: parse error before
  27. :> : numeric constant
  28. :> :
  29. :> Like it says in the makefile in the comments on that makefile target:
  30. :>
  31. :>   #Add -DOPENSSL_097 for OpenSSL 0.9.7 or later.
  32. :>
  33. :> So use:
  34. :>
  35. :>   make solaris9g+openssl+shadow+pam+zlib KFLAGS=-DOPENSSL_097
  36. :>
  37. :> If somebody knows a way to get the OpenSSL version number from the shell
  38. :> command line, we could have the makefile figure this out automatically.
  39. :>
  40. :> - Frank
  41. :
  42. : I tried the above make line but I get the exact same error.
  43. :
  44. I have Solaris 9 here, with OpenSSL 0.9.8d, and "It Works For Me" (TM).
  45.  
  46. To build C-Kermit with OpenSSL, you need to use one of the appropriate
  47. makefile targets (which you did), plus:
  48.  
  49.  . If the OpenSSL version is 0.9.7 or greater (a point where the API
  50.    changed), you have to add -DOPENSSL_097 to CFLAGS (which can be
  51.    done as shown above);
  52.  
  53.  . If the OpenSSL header files are not in /usr/local/ssl/include, you
  54.    have to change or override the definitions of "prefix" or "sslroot"
  55.    or SSLINCL in the makefile.
  56.  
  57.  . If the OpenSSL libraries are not in /usr/local/ssl/lib, you
  58.    have to change or override the definitions of "prefix" or "sslroot"
  59.    or SSLLIB in the makefile.
  60.  
  61. At Columbia, we have to do all these things, because around here (or maybe in
  62. Solaris in general) "/usr/local" is "deprecated": Here is the procedure:
  63.  
  64.   export SSLINC=-I/opt/openssl-0.9.8d/include
  65.   export SSLLIB=-L/opt/openssl-0.9.8d/lib
  66.   export "KFLAGS=-DOPENSSL_097 -DCK_FORWARD_X -D_FILE_OFFSET_BITS=64"
  67.   make -e solaris9g+openssl+shadow+pam+zlib
  68.  
  69. - Frank